package test03;

public class Zoo {
    private String name;
    private String food;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public Zoo() {
        System.out.println("ss");
    }

    public void sleep(){
        System.out.println(name+":睡觉");
    }

    public void eat(String food){
        System.out.println(name+"吃"+food);
    }
}
